﻿@model EAM.Model.AssetBrandSupply
@{
    ViewBag.Title = "编辑供应商品牌商";
}
<div style="padding: 10px;">
    <div style="padding-bottom: 5px;">
        <a href="@Url.Action("index")" class="btn_green">返回商家列表</a>
    </div>
    @using (Html.BeginForm())
    {
        <div style="line-height: 30px; font-weight: bold; color: Red;">
        </div>
        <table class="tb">
            <tr>
                <td class="editor-label">@Html.LabelFor(m => m.BrandSupplyName)<span class="red">(*)</span></td>
                <td colspan="3">
                    @Html.TextBoxFor(m => m.BrandSupplyName)
                    @Html.ValidationMessageFor(m => m.BrandSupplyName)
                </td>
            </tr>
            <tr>
                <td class="editor-label">供应商类型<span class="red">(*)</span></td>
                <td>
                     @Html.DropDownListFor(m => m.BrandSupplyType, new SelectList((Dictionary<int, string>)ViewData["BrandSupplyTypeList"], "key", "value"), "请选择类型")
		     @Html.ValidationMessageFor(m => m.BrandSupplyName)
                </td>
                <td class="editor-label">联系人</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyContactMember)
                </td>
            </tr>
            <tr>
                <td class="editor-label">联系电话</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyContactPhone)
                </td>
                <td class="editor-label">@Html.LabelFor(m => m.BrandSupplyEmail)</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyEmail)
                </td>
            </tr>
            <tr>
                <td class="editor-label">联系地址</td>
                <td colspan="3">
                    @Html.TextBoxFor(m => m.BrandSupplyAddress, new { @style = "width:98%;" })
                </td>
            </tr>
            <tr>
                <td class="editor-label">生产许可证</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyProdLicense)
                </td>
                <td class="editor-label">生产许可有效期</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyProdLicenseLastTime)
                </td>
            </tr>
            <tr>
                <td class="editor-label">营业许可证</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyBussinessLicense)
                </td>
                <td class="editor-label">营业许可有效期</td>
                <td>
                    @Html.TextBoxFor(m => m.BrandSupplyBussinessLicenseLastTime)
                </td>
            </tr>
            <tr>
                <td class="editor-label">说明</td>
                <td colspan="3">
                    @Html.TextAreaFor(m => m.BrandSupplyDescript, 4, 60, null)
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="3">
                    <input type="submit" value="保存" class="btn_green" />
                    <input type="reset" value="重置" class="btn_orange" />
                </td>
            </tr>
        </table>
    }
</div>
<script type="text/javascript">
    $(function () {
        $("#BrandSupplyProdLicenseLastTime").ligerDateEditor({ initValue: $("#BrandSupplyProdLicenseLastTime").val() });
        $("#BrandSupplyBussinessLicenseLastTime").ligerDateEditor({ initValue: $("#BrandSupplyBussinessLicenseLastTime").val() });
    });
</script>